package com.yamed.customer.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: wchen
 * @Description:
 * @Date: Created in 2019-08-28 14:29
 * Copyright 本内容仅限于杭州阿拉丁信息科技股份有限公司内部传阅，禁止外泄以及用于其他的商业目的
 */
@FeignClient(value = "order-service",fallbackFactory = OrderClientFallBack.class)
public interface OrderClient {

    @GetMapping("/order/countAllOrder/{userId}")
    Integer countAllOrders(@PathVariable("userId") Long userId);
}
